package battleship;

import javax.swing.JPanel;


class Plansza extends JPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String[] cordsOnGridH = new String[10];
	private int[] cordsOnGridV = new int[10];
	private int val = 5;
	private String values = "ABCDEFGHIJ";
	public int Count[] = new int[5];
	
	public Plansza() {
		for(int i = 0; i < 10; i++){
			cordsOnGridH[i] = values.substring(i,i+1);
			cordsOnGridV[i] = i+1;
		}
		for(int i = 0; i < 5; i++){
			Count[i] = this.val;
			this.val--;
		}
	}
	
	public String getCordsH(int c){
		return cordsOnGridH[c];
	}
	public int getCordsV(int c){
		return cordsOnGridV[c];
	}
}